import logging


def log_put(code, number, str_string):
    if code == 1:
        str_string = f">> 请求 GIF 下载成功。数量：{number}"

    elif code == 2:
        str_string = f">> 请求 PNG 下载成功。数量：{number}"

    elif code == 3:
        str_string = f">> 请求音乐下载成功。数量：{number}"

    elif code == 4:
        str_string = f">> 请求字体下载成功。数量：{number}"

    elif code == 5:
        str_string = f">> 本地 PNG 资源获取成功。数量：{number}"

    elif code == 6:
        str_string = ">> 请求 OpenAI 接口成功。"

    elif code == 7:
        str_string = f">> 解析模板资源。模板代码：{number} ......"

    elif code == 8:
        str_string = f">> 模板：{number} 片段准备就绪......"

    elif code == 9:
        str_string = ">> 开始视频合成 ......"

    elif code == 10:
        str_string = ">> 结束合成视频成功......"

    elif code == 11:
        str_string = "<< 删除临时文件错误"

    elif code == 12:
        str_string = ">> 请求写入成功："

    elif code == 13:
        str_string = ">> 聘请写作："

    elif code == 16:
        str_string = ">> 视频转至腾讯云服务器成功>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"

    elif code == 17:
        str_string = "<< 视频转至腾讯云服务器错误："

    elif code == 18:
        str_string = "<< 模板创建目前不支持。"


    print(str_string)


if __name__ == '__main__':
    log_put(1, 1, None)
